package com.optimatch.ui.view.customComponents.pages.creation_equipes;

import java.util.ArrayList;
import java.util.Observable;

public class ModelListEquipes extends Observable {
	
	private ArrayList<String> list;
	
	public ModelListEquipes() {
		this.list = new ArrayList<String>();
	}
	
	public void add(String s) {
		this.list.add(s);
		setChanged();
		notifyObservers();
	}
	
	public void remove(String s) {
		this.list.remove(s);
		setChanged();
		notifyObservers();
	}
	
	public boolean contains(String s) {
		return this.list.contains(s);
	}
	
}
